-- GENERATED SPELL FOR [Splinter Fist Enslaver] --


function spell0_1487(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1487', 2311, 1)
end

function spell1_1487(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1487', 500, 1)
end

function Sorts_1487(pUnit, Event)
local choix_sorts_1487 = math.random(0, 1)
if choix_sorts_1487 == 0 then
pUnit:RegisterEvent('spell0_1487', 1, 1)
end
if choix_sorts_1487 == 1 then
pUnit:RegisterEvent('spell1_1487', 1, 1)
end
end

function mob1487_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1487', math.random(1500, 3000), 1)
end

function mob1487_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1487_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1487_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1487, 1, 'mob1487_Action')
RegisterUnitEvent(1487, 2, 'mob1487_Leave')
RegisterUnitEvent(1487, 3, 'mob1487_Kill')
RegisterUnitEvent(1487, 4, 'mob1487_Die')
